import { createUniver } from './univer-factory.js';

const { univerAPI } = createUniver();

// http://localhost:3010/?unit=n2noIRzHQSSu98FE4SU7Dgt&type=2&subunit=QWn1LTo2SLGeuDHLkGjfx
/* const workbook = */ await univerAPI
  .getCollaboration()
  .loadSheetAsync('n2noIRzHQSSu98FE4SU7Dgt');

// const worksheet = workbook.getActiveSheet();
// console.log('Workbook loaded:', worksheet.getRange('A1').getCellData().v);
// await new Promise((resolve) => setTimeout(resolve, 1000)); // Wait for a second to ensure the data is loaded
// console.log('第二行总价', worksheet.getRange('2I').getCellData().v);
